<%@ page language="java" pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<s:form action="admin/updateMailingSystem.htm" method="post" theme="simple" id="form">
	<table width="100%">
		<tbody>
			<tr>
        		<td height="40" colspan="2" class="sectionheading bottom-border">Mailing System</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Select mail program and platform:
				</td>
				<td>
					<s:select theme="simple" value="%{mailingSystem.mailPlatform}"
						name="mailingSystem.mailPlatform" cssClass="Textfiled-border"
						list="#{'Sendmail (Unix)':'Sendmail (Unix)', 'SMTP (Unix / Windows)':'SMTP (Unix / Windows)'}"></s:select>
					&nbsp; <span class="verdana12BlackNormal">Your OS: linux</span>
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Location of mail program(or SMTP server address):
				</td>
				<td>
					<s:textfield theme="simple" name="mailingSystem.serverAddress"
						value="%{mailingSystem.serverAddress}" cssClass="Textfiled-border" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					SMTP Server Username:
				</td>
				<td>
					<s:textfield theme="simple" name="mailingSystem.serverUsername"
						value="%{mailingSystem.serverUsername}" cssClass="Textfiled-border" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					SMTP Server Password
				</td>
				<td>

					<s:password showPassword="true" theme="simple"
						name="mailingSystem.serverPassword" cssClass="Textfiled-border"
						value="%{mailingSystem.serverPassword}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Email System Status:
				</td>
				<td>
					<s:select theme="simple" value="%{mailingSystem.emailSystemStatus}"
						name="mailingSystem.emailSystemStatus" cssClass="Textfiled-border"
						list="#{'on':'ON', 'off':'OFF'}"></s:select>
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Webmaster E-mail Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.webmasterEmailAddress"
						value="%{mailingSystem.webmasterEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Accounts Confirmation Email:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.accountsConfirmationEmail"
						value="%{mailingSystem.accountsConfirmationEmail}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Billing E-mail Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.billingEmailAddress"
						value="%{mailingSystem.billingEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Accounting E-mail Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.accountingEmailAddress"
						value="%{mailingSystem.accountingEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Contact Us E-mail Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.contactusEmailAddress"
						value="%{mailingSystem.contactusEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Legal Contact Email Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.legalContactEmailAddress"
						value="%{mailingSystem.legalContactEmailAddress}" />
				</td>
			</tr>

			<tr>
				<td align="right" class="verdana12blacknormal">
					Technical Support E-mail Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.technicalSupportEmailAddress"
						value="%{mailingSystem.technicalSupportEmailAddress}" />
				</td>
			</tr>

			<tr>
				<td align="right" class="verdana12blacknormal">
					Bidding Confirm Email Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.biddingConfirmEmailAddress"
						value="%{mailingSystem.biddingConfirmEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					List Confirm Email Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.listConfirmEmailAddress"
						value="%{mailingSystem.listConfirmEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Winner Confirm Email Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.winnerConfirmEmailAddress"
						value="%{mailingSystem.winnerConfirmEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Non Winner Confirm Email Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.nonWinnerConfirmEmailAddress"
						value="%{mailingSystem.nonWinnerConfirmEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Sold Confirm Email Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.soldConfirmEmailAddress"
						value="%{mailingSystem.soldConfirmEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Not Sold Email Address:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.notSoldEmailAddress"
						value="%{mailingSystem.notSoldEmailAddress}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Outgoing Email Format:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.outgoingEmailFormat"
						value="%{mailingSystem.outgoingEmailFormat}" />
				</td>
			</tr>
			<tr>
				<td align="right" class="verdana12blacknormal">
					Outgoing Email X-Priority:
				</td>
				<td>
					<s:textfield theme="simple" cssClass="Textfiled-border"
						name="mailingSystem.outgoingEmailXPriority"
						value="%{mailingSystem.outgoingEmailXPriority}" />
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center" width="100%">
					<s:submit theme="simple" type="image" src="../Admin-Images/submit-btn.gif" value="Save Changes" />
					<input type="image" src="../Admin-Images/reset-button.gif" value="Reset" onclick="this.form.reset();">
				</td>
			</tr>
		</tbody>
	</table>
	<s:hidden name="mailingSystem.id" value="%{mailingSystem.id}" />
</s:form>